export{}

enum Status {
    MESSAGE,
    SPA,
    DABAOJIAN
}

function getServe(status: number) {
    if (status === Status.MESSAGE) {
        return 'message'
    } else if (status === Status.SPA) {
        return 'SPA'
    } else if (status === Status.DABAOJIAN) {
        return 'anzia'
    }
}

const result = getServe(Status.MESSAGE)
console.log(Status.MESSAGE, Status[1]);
console.log(`我要去${result}`);